package cn.dakaqi.vo.request.openPlatform;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Created by yangx
 * Date: 2016/7/18 0018
 * Time: 14:32
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private String mobile;
    private String password = "10000";
    private int platform = 1;
    private String area = "";
    private Double lng = 1.0;
    private Double lat = 1.0;
    private String code = "dakaqiCode";

    private String idCard;
    private String name;

    public static UserVo build(MaibaoVo maibaoVo){
        UserVo userVo = new UserVo();
        userVo.setLng(maibaoVo.getLng());
        userVo.setArea(maibaoVo.getArea());
        userVo.setCode(maibaoVo.getCode());
        userVo.setLat(maibaoVo.getLat());
        userVo.setMobile(maibaoVo.getMobile());
        userVo.setPassword(maibaoVo.getPassword());
        userVo.setPlatform(maibaoVo.getPlatform());
        return userVo;
    }
}
